package Extends.ExtendsText005;

/**
 * ClassName:Employee
 * Package:Extends.ExtendsText005
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/20-2:29
 * @Version:v1.0
 */
public class Employee {
    private String id;
    private String name;
    private int salary;

    public Employee() {
    }

    public Employee(String id, String name, int salary) {
        this.id = id;
        this.name = name;
        this.salary = salary;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }
    public void Eat(){
        System.out.println("我爱吃米饭");
    }
    public void work(){
        System.out.println("员工正在工作");
    }
}
